<?php
if ( !defined( "IN_OP" ) )
{
    exit( "You can't access this file directly..." );
}
$ui = new UI();
$tpl = new Template2();
$conf = new Config();
$tpl->load( array("menu" => "6h_menu.htm",  "main" => "rule.htm", "news" => "news.htm" ) );
$tpl->show( "menu" );
$conf = new Config();
$news = $conf->Get( "news" );
$tpl->set( "newsmessage", $news );
$tpl->show( "news" );
$yy = intval( $conf->get( "chinayear" ) );
$tpl->set( "cchinayear", "<font color=\"#FF0000\">".$g_chinayear[$yy]."</font>" );
$yearArr = GetChinaYearNumber( 0 );
$html = "";
$i = $yy;
while ( $i <= 12 )
{
    $html .= "<br>".$g_chinayear[$i]." : ".implode( " , ", $yearArr[$i] );
    ++$i;
}
if ( 1 < $yy )
{
    $i = 1;
    while ( $i < $yy )
    {
        $html .= "<br>".$g_chinayear[$i]." : ".implode( " , ", $yearArr[$i] );
        ++$i;
    }
}
$tpl->set( "html", $html );
$tpl->show( "main" );
?>